import 'package:flutter/material.dart';

class HomePage extends StatefulWidget {
  const HomePage({super.key});

  @override
  _HomePageState createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('HomePage'),
      ),
      body: Column(
        children: [
          Text('HomePage'),
          TextButton(
            onPressed: () {
              print('AboutPage');
              Navigator.pushNamed(context, '/about');
            },
            child: const Text('AboutPage'),
          ),
          TextButton(
            onPressed: () {
              print('Example');
              Navigator.pushNamed(context, '/example');
            },
            child: const Text('Example'),
          ),
        ],
      ),
    );
  }
}